package com.att.action;

import com.att.bean.UserOfRunDeilBean;
import com.att.service.UserOfRunDeilService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("userOfRunDeil")
public class UserOfRunDeilAction {

    @Resource(name = "userOfRunDeilService")
    private UserOfRunDeilService userOfRunDeilService;

    /**
     * Description: 带条件查询人员排班详情
     * @param bean
     */
    @RequestMapping("selectUserOfRunDeilInfo")
    @ResponseBody
    public Object selectAll(UserOfRunDeilBean bean) {
        List<UserOfRunDeilBean> list = userOfRunDeilService.findUserOfRunDeilBean(bean);
        return  list;
    }
}
